package com.cn.lyl.lawyer.dao;

import com.cn.lyl.lawyer.model.entity.NewsTypeModel;

import java.util.List;

public interface NewsTypeMapper {

    int add(NewsTypeModel newsTypeModel);

    int delete(Integer id);
    int update(NewsTypeModel newsTypeModel);
    NewsTypeModel findById(Integer id);
    List<NewsTypeModel> findAll();
    int countFindAll(NewsTypeModel newsTypeModel);
    NewsTypeModel findByType(String type);
}
